package cn.hubujyjs.lp.config;

import cn.hubujyjs.lp.bo.AdminBo;
import cn.hubujyjs.lp.bo.UserBo;

public class AdminHolder {
    private static final ThreadLocal<AdminBo> tl = new ThreadLocal<>();

    public static void saveUser(AdminBo user){
        tl.set(user);
    }

    public static AdminBo getUser(){
        return tl.get();
    }

    public static void removeUser(){
        tl.remove();
    }
}
